package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_opera_mask_skill_star", autoSave = true)
public class LogOperaMaskSkillStar {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "变更前星级")
    private int beforeStar;
    @FieldTypeAnnotation(desc = "变更后星级")
    private int afterStar;
    @FieldTypeAnnotation(desc = "累计消耗体力")
    private int sumEnergy;

    @FieldTypeAnnotation(desc = "变更前脸谱星级信息")
    private String beforeSkill;

    @FieldTypeAnnotation(desc = "变更前脸谱星级信息")
    private String afterSkill;

    @FieldTypeAnnotation(desc = "累计雅韵值")
    private long sumScore;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogOperaMaskSkillStar(long userId, int activityId, int beforeStar, int afterStar, int sumEnergy, String beforeSkill, String afterSkill, long sumScore) {
        this.userId = userId;
        this.activityId = activityId;
        this.beforeStar = beforeStar;
        this.afterStar = afterStar;
        this.sumEnergy = sumEnergy;
        this.beforeSkill = beforeSkill;
        this.afterSkill = afterSkill;
        this.sumScore = sumScore;
        this.time = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getBeforeStar() {
        return beforeStar;
    }

    public void setBeforeStar(int beforeStar) {
        this.beforeStar = beforeStar;
    }

    public int getAfterStar() {
        return afterStar;
    }

    public void setAfterStar(int afterStar) {
        this.afterStar = afterStar;
    }

    public int getSumEnergy() {
        return sumEnergy;
    }

    public void setSumEnergy(int sumEnergy) {
        this.sumEnergy = sumEnergy;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
